Termination Proof Script
Consider the TRS R consisting of the rewrite rules
|
1: |
|
from(X) |
→ cons(X,n__from(s(X))) |
2: |
|
sel(0,cons(X,Y)) |
→ X |
3: |
|
sel(s(X),cons(Y,Z)) |
→ sel(X,activate(Z)) |
4: |
|
from(X) |
→ n__from(X) |
5: |
|
activate(n__from(X)) |
→ from(X) |
6: |
|
activate(X) |
→ X |
|
There are 3 dependency pairs:
|
7: |
|
SEL(s(X),cons(Y,Z)) |
→ SEL(X,activate(Z)) |
8: |
|
SEL(s(X),cons(Y,Z)) |
→ ACTIVATE(Z) |
9: |
|
ACTIVATE(n__from(X)) |
→ FROM(X) |
|
The approximated dependency graph contains one SCC:
{7}.
-
Consider the SCC {7}.
The usable rules are {1,4-6}.
By taking the AF π with
π(activate) = π(cons) = π(from) = π(n__from) = π(SEL) = 1 together with
the lexicographic path order with
empty precedence,
the rules in {1,4-6}
are weakly decreasing and
rule 7
is strictly decreasing.
Hence the TRS is terminating.
Tyrolean Termination Tool (0.03 seconds)
--- May 4, 2006